<?php
class InitComponent extends Object {
	var $controller = null;
	
	function startup(&$controller) {
		$this->controller = $controller;
	}
	
	/**
	 * Khởi tạo tất cả các controller
	 * @return unknown
	 */
	function init() {
		$admin['User'] = $this->controller->Session->read('admin');
		$this->controller->set('admin', $admin);
		
		return $admin;
	}
	

}
?>
